package com.assignwork.vo;

import com.assignwork.util.BigDecimalSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @ClassName BillAllCabinPageVO
 * @Description 舱单全舱情况VO
 * @Author dujianyu
 * @Date 2023/8/24 9:43
 */
@Data
public class BillAllCabinPageVO {

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "票元数据ID")
    private Long sourceId;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "航次ID")
    private Long voyageId;

    @ApiModelProperty(value = "船名")
    private String shipNameZh;

    @ApiModelProperty(value = "航次")
    private String voyage;

    @ApiModelProperty(value = "票号")
    private String billNo;

    @ApiModelProperty(value = "舱口名称")
    private String cabins;

    @ApiModelProperty(value = "舱口名称")
    private String cabinsName;

    @ApiModelProperty(value = "舱口名称")
    private String cabinNames;

    @ApiModelProperty(value = "货名")
    private String cargoType;

    @ApiModelProperty(value = "货名")
    private String cargoTypeName;

    @ApiModelProperty(value = "包装类型")
    private String packageType;

    @ApiModelProperty(value = "包装类型")
    private String packageTypeName;

    @ApiModelProperty(value = "计划件")
    private Long planPiece;

    @JsonSerialize(using = BigDecimalSerializer.class)
    @ApiModelProperty(value = "计划吨")
    private BigDecimal planTon;

    @ApiModelProperty(value = "货件")
    private Long allCargoPiece;

    @JsonSerialize(using = BigDecimalSerializer.class)
    @ApiModelProperty(value = "货吨")
    private BigDecimal allCargoTon;

    @JsonSerialize(using = BigDecimalSerializer.class)
    @ApiModelProperty(value = "作业吨")
    private BigDecimal allWorkTon;

    @JsonSerialize(using = BigDecimalSerializer.class)
    @ApiModelProperty(value = "甩吨")
    private BigDecimal allRemainder;

    @ApiModelProperty(value = "是否完成")
    private Integer isFinish;

}
